home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / airfox.swf / scripts / frame_8 / PlaceObject2_67_8 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2006-06-13  |  915 b   |  28 lines

  1. onClipEvent(enterFrame){
  2.    if(_name != "mine1")
  3.    {
  4.       _Y = _Y + _root.scrollspeed;
  5.       if(320 < _Y)
  6.       {
  7.          removeMovieClip(this);
  8.       }
  9.       if(this.hitTest(_root.ship) && _root.shippause == 0 && _root.shield == 0)
  10.       {
  11.          _root.ship._alpha = 0;
  12.          _root.explosioncount = _root.explosioncount + 1;
  13.          duplicateMovieClip(_root.explosion,"explosion" + _root.explosioncount,16384 + _root.explosioncount);
  14.          setProperty("_root.explosion" + _root.explosioncount, _X, _root.ship._x);
  15.          setProperty("_root.explosion" + _root.explosioncount, _Y, _root.ship._y);
  16.          if(_root.explosioncount >= 4070)
  17.          {
  18.             _root.explosioncount = 4050;
  19.          }
  20.          _root.shipcount--;
  21.          _root.displaycount = 0;
  22.          _root.dragger._y = -150;
  23.          _root.ship._y = -150;
  24.          removeMovieClip(this);
  25.       }
  26.    }
  27. }
  28.